package com.sl.au.repository;


import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.sl.au.entity.News;


public interface NewsRepository extends JpaRepository<News, String> {
	
	@Query(" select a from News a where a.newsTitle like %?1%")
	Page<News> getNewsByKey(String key, Pageable pageable);
	
}
